package cn.dreamblog.service.impl;

import cn.dreamblog.dao.BlogDao;
import cn.dreamblog.pojo.Blog;
import cn.dreamblog.service.BlogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 林泽豪
 * @create 2019-11-05 17:05
 */
@Service("blogService")
public class BlogServiceImpl implements BlogService {

    @Resource
    private BlogDao blogDao;

    @Override
    public List<Blog> queryBlogList(Blog blog) {
        return blogDao.queryBlogList(blog);
    }

    @Override
    public int updateGoodCount(int blog_id, int goodCount) {
        return blogDao.updateGoodCount(blog_id, goodCount);
    }

}
